package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-05-28
 * Time: 19:34
 */
public class DisplayOperation implements IOperation {
    @Override
    public void work(BookList books) {
        int size = books.getSize();
        for (int i = 0; i < size; i++) {
            Book book = books.getBook(i);
            System.out.println(book);
        }
    }
}
